package com.taotao.openapi2.config;

import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.validation.ValidatorManager;
import org.noear.solon.validation.annotation.DateValidator;

import java.util.Date;

@Configuration
public class ValidatorConfig {
    @Bean
    public void adapter() {
        //
        // 此处为注册验证器。如果有些验证器重写了，也是在此处注册
        //
//        ValidatorManager.register(Date.class, new DateValidator());
    }
}